package com.hohd;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.kh.first.pojo.common.AjaxJson;

import java.io.IOException;

public class T0330Json {
    public static void main(String[] args) throws IOException {
        //
        String json = "{\"code\":1,\"errcode\":0,\"data\":{\"taskIds\":[123,456,333],\"name\":\"张三\"},\"count\":0}";
        ObjectMapper mapper = new ObjectMapper();
        ObjectMapper enable = mapper.enable(DeserializationFeature.UNWRAP_ROOT_VALUE);
        User o = mapper.readValue(json, new TypeReference<User>() {
        });
        System.out.println();
    }
}
